var QtcAssistant = Class.create(AbstractModule, {

//Contributed by Neil Lall

setupWidgets: function() {

		//About
		this.controller.setupWidget(Mojo.Menu.appMenu, {
			omitDefaultItems: true
		}, {
			visible: true,
			items: [
      		Mojo.Menu.editItem,
			{ label: "Disclaimer", command: "do-disclaimer" },					
				{ label: "License", command: "do-license" },
				{ label: "Help", command: "do-help" }
			]
		});

	this.controller.setupWidget("hrField", {
		charsAllow: isValidFPNumber,
		modifierState: Mojo.Widget.numLock	

  }, {});
		
		this.controller.setupWidget("qtField", {
		charsAllow: isValidFPNumber,
		modifierState: Mojo.Widget.numLock

  }, {});
	
},



	calculate: function() {
	var result = qtcalc($("hrField").mojo.getValue(),$("qtField").mojo.getValue());

	return "The Corrected QT Interval (QTc) is " + result.qtc +" msec";

		
	}
});





